for i in *.tar
do
if [ ! -d /data/data/`basename $i .tar` ]
then
echo `basename $i .tar`
tar xvf $i -C / >>restore.log 2>>restore.err
fi
done